Repository navigation
test(mcpx): effect probe for plugin.remember (#8472 burn-down slice) - #13034
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 17 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
dezren39
force-pushed
the
lane-ka-8472
branch
2 times, most recently
from
November 23, 2026 07:32
a531b11 to
de6cbc9
Compare
plugin.remember (MCPX_PLUGIN_REMEMBER) names how long a daemon choice stays chosen. Its whole effect lives in the opencode plugin host: daemon_pick falls back to the setting when a call names no scope of its own — session keeps the choice in memory only, while until-gone and indefinite write it to the host's per-plugin storage under daemon:<directory>. New bun suite plugin/opencode/v2/remember.test.ts drives the real tool runtime, picker and storage-backed applyChoice with options resolved from the environment: unset and explicit session persist nothing; until-gone and indefinite persist the picked target, readable back through the real readRememberedDaemon; the scope shown to the permission prompt is the setting's value. Go probe TestPluginRememberScopePersistsTheDaemonChoiceFromTheEnvironment registered in the settings EffectProbes and the e2e mirror maps; the plugin.remember exemption is deleted and the exemption pin ratchets down by one.
dezren39
force-pushed
the
lane-ka-8472
branch
from
November 23, 2026 07:37
de6cbc9 to
260e9bf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
One burn-down slice of #8472 (settings plugin family):
plugin.remembergets a real effect probe, in the shape of the landed annotate/backend/bin/binArgs/env/daemonTools slices.plugin.remember(MCPX_PLUGIN_REMEMBER) names how long a daemon choice stays chosen. Its whole effect lives in the opencode plugin host:daemon_pickfalls back to the setting when a call names no scope of its own —sessionkeeps the choice in memory only, whileuntil-goneandindefinitewrite it to the host's per-plugin storage underdaemon:<directory>, where a later session recalls it.Changes
plugin/opencode/v2/remember.test.ts(new) — 4 bun cases driving the real tool runtime, the real picker and the real storage-backedapplyChoice, with options resolved from the environment: unset (the session default) and explicitsessionpersist nothing and report "for this session only";until-goneandindefinitepersist the picked target under the directory's key, read back through the realreadRememberedDaemon; the scope shown to the permission prompt is the setting's value.TestPluginRememberScopePersistsTheDaemonChoiceFromTheEnvironmentininternal/e2e/plugin_test.go(runs the bun suite, fails on skips); mirror entries ininternal/e2e/effect_test.go;plugin.remembermoved fromEffectExemptionstoEffectProbesininternal/settings/effect.go; its line deleted fromfeature_coverage_exemptions.txt; exemption pin ratchets to 9 on current main (this slice removes one exemption; the daemonTools, tools, discoveryRetry and toolTiming slices landed on main mid-flight, and each rebase resolved by union — every landed probe registered, every landed exemption gone).Verification (laptop worktree, on the final rebased state)
bun test plugin/opencode/v2/remember.test.ts— 4 pass / 0 fail.go test ./internal/settings/ -count=1— ok (guard + ratchet at pin 9).go test ./internal/e2e/ -run "TestPlugin|TestFeatureCoverage" -count=1— ok: all ten plugin probes (annotate, backend, bin, binArgs, env, daemonTools, tools, discoveryRetry, toolTiming, remember) and the coverage-guard tests pass.gofmtclean;go vetclean.#8472 stays open: exemptions remain for plugin.disabledTools (flag-held), plugin.headless and plugin.instructions.